
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
<div class="hide">
    child
</div>
<script>
    //解决的问题是不同域名传递数据问题
    window.onload = function(){
        var href = location.href
        console.log(href)
        window.parent.parent.demo(href)//同源如果是 parent则不同源
    }
</script>
</body>
</html>